﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;

namespace VAdvantage.Editor
{
    public class ValueChangedEvent:EventArgs
    {

        #region Declaration

        private String propertyName;

        private Object newValue;

        private Object oldValue;

        private Object propagationId;

        private Object source;

        #endregion

        public ValueChangedEvent(Object source, String propertyName,
                     Object oldValue, Object newValue)
        {
            this.source = source;
            this.propertyName = propertyName;
            this.newValue = newValue;
            this.oldValue = oldValue;
        }

        public String GetPropertyName()
        {
            return propertyName;
        }

        public Object GetNewValue()
        {
            return newValue;
        }

        public Object GetOldValue()
        {
            return oldValue;
        }

        public Object GetSender()
        {
            return source;
        }

    }
}
